/**
 * 基础路由
 * @type { *[] }
 */
const constantRouterMap = [
  {
    path: '/',
    component: () => import('@/layouts/AppSider.vue'),
    children: [
      {
        path: '/message',
        name: 'Message',
        component: () => import('@/layouts/Menu.vue'),
        props: { id: 'message' },
        //props: true,
        redirect: { name: 'MessageIndex' },
        children: [
          {
            path: '/message/index',
            name: 'MessageIndex',
            component: () => import('@/views/Message.vue')
          },
            {
            path: '/message/content',
            name: 'MessageContent',
            component: () => import('@/views/message/Message.vue')
          },
        ]  
      },
      {
        path: '/friends',
        name: 'Friends',
        component: () => import('@/layouts/Menu.vue'),
        props: { id: 'friends' },
        redirect: { name: 'FriendsIndex' },
        children: [
          {
            path: '/friends/index',
            name: 'FriendsIndex',
            component: () => import('@/views/Friends.vue')
          }
        ]  
      },      
      {
        path: '/ceshi',
        name: 'Ceshi',
        component: () => import('@/views/Ceshi.vue'),
        props: { id: 'ceshi' },
        redirect: { name: 'CeshiIndex' },
        children: [
          {
            path: '/ceshi/index',
            name: 'CeshiIndex',
            component: () => import('@/views/Ceshi.vue')
          }
        ]  
      },
    ]
  },
]

export default constantRouterMap